from django.urls import path
from .views import every, login, register, home, update_user_info, change_password, list_all_users, delete_user, \
    get_user_by_email, condition, map, list_all_managers, get_manager_by_email, delete_manager, \
    get_weather_details, start_crawler

urlpatterns = [
    path('', every, name='every'),
    path('login/', login, name='login'),
    path('register/', register, name='register'),
    path('start_crawler/', start_crawler, name='start_crawler'),
    path('home/', home, name='home'),
    # 个人中心
    path('update_user_info/', update_user_info, name='update_user_info'),
    path('change_password/',change_password,name='change_password'),
    # 用户管理
    path('listuserall/', list_all_users, name='list_all_users'),
    path('delete_user/', delete_user, name='delete_user'),
    path('get_user_by_email/', get_user_by_email, name='get_user_by_email'),
    # 管理员管理
    path('list_all_managers/',list_all_managers,name='list_all_managers'),
    path('get_manager_by_email/',get_manager_by_email,name='get_manager_by_email'),
    path('delete_manager/', delete_manager, name='delete_manager'),

    path('condition/', condition, name='condition'),
    # path('get_weather_data/', get_weather_data,name='get_weather_data'),
    # 全国天气地图
    path('map/', map, name='map'),
     # 实时天气
    path('get_weather_details/', get_weather_details, name='get_weather_details')





]
